package com.feiyisys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.feiyisys.bo.UpdateVideoStatusBO;
import com.feiyisys.common.Result;
import com.feiyisys.dto.FindVPageDTO;
import com.feiyisys.dto.UpdateVideoDTO;
import com.feiyisys.manager.AsyncVideoUploadManager;
import com.feiyisys.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 文化遗产相关视频表 服务类
 * </p>
 *
 * @author wq
 * @since 2025-10-10
 */
public interface VideoService extends IService<Video> {

   // VodUploadResponse uploadVideo(MultipartFile videoFile, MultipartFile coverFile,String title,String description);
    String asyncUploadVideo(MultipartFile videoFile, MultipartFile coverFile,
                            String title, String description);

    AsyncVideoUploadManager.UploadTask getUploadTaskStatus(String taskId);

    boolean updateVideo(UpdateVideoDTO updateVideoDTO);

    Object updateIsUse(UpdateVideoStatusBO updateVideoStatusBO);


    IPage<Video> findPage(FindVPageDTO findVPageDTO);


    Object getVideoInfoById(String id);

    List<Video> getTop();

}
